import request from '@/utils/request'

// 查询业主房屋列列表
export function listHost(query) {
  return request({
    url: '/system/host/list',
    method: 'get',
    params: query
  })
}

// 查询业主房屋列详细
export function getHost(id) {
  return request({
    url: '/system/host/' + id,
    method: 'get'
  })
}

// 新增业主房屋列
export function addHost(data) {
  return request({
    url: '/system/host',
    method: 'post',
    data: data
  })
}

// 修改业主房屋列
export function updateHost(data) {
  return request({
    url: '/system/host',
    method: 'put',
    data: data
  })
}

// 删除业主房屋列
export function delHost(id) {
  return request({
    url: '/system/host/' + id,
    method: 'delete'
  })
}

// 导出业主房屋列
export function exportHost(query) {
  return request({
    url: '/system/host/export',
    method: 'get',
    params: query
  })
}